import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
import axios from "axios"
import VueAxios from "vue-axios"
import router from './route'
import store from './store'
// import VueVideoPlayer from 'vue-video-player'
// import 'video.js/dist/video-js.css'
const app = createApp(App)

app.use(router)
app.use(store)
// 载入VS配置
VSConfig.sync_pull_remote_config()

app.use(ElementPlus)
app.use(VueAxios, axios)

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { VSConfig } from './config/setting'

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}




app.mount('#app')


// createApp(App).mount('#app')
